A utility default allocator allocating an object through a simple call to new. More...
Public Member Functions | |
DefaultAllocator ()=default | |
~DefaultAllocator ()=default | |
virtual T * | allocate () override |
![]() | |
Allocator ()=default | |
virtual | ~Allocator ()=default |
A utility default allocator allocating an object through a simple call to new.
|
default |
Constructor.
|
default |
Destructor.
|
overridevirtual |
Allocates using the new operator. If a more complex behaviour is needed, external code needs to implement their own Allocator.
Implements nkMemory::Allocator< T >.